﻿using Assets.Scripts.Net.Data.Model;
using UnityEngine.UI;

namespace Assets.Scripts.UI.Item
{
    /// <summary>
    /// 班主任评语的Item
    /// </summary>
    public class RemarkItem:UIBase<RemarkItem>
    {
        public Text RemarkText;//评语Text
        protected override UIType UIType
        {
            get { return UIType.Item;}
        }
        protected override void InitOnAwake()
        {
            AutoFindComponent(transform, true);
        }

        public void Init(RemarkInfo remarkInfo)
        {
            RemarkText.text = remarkInfo.Remark;
        }
    }
}